import { api } from '../boot/axios';
import { RegularCheck } from 'src/services/type';
export function getlist(
  system: string,
  stock_code: string,
  serial_no: string,
  work_group: string,
  location: string,) {
  return api({
    url: '/api/report/get_spare_location_report/',
    method: 'post',
    data: {
      stock_code,
      serial_no,
      system,
      work_group,
      location,
    }
  });
}
export function get_mean_list(
) {
  return api({
    url: '/api/report/get_mean_time_between_failure/',
    method: 'get',
  });
}

export function get_obsolescence_management_list(
) {
  return api({
    url: '/api/stock/get_stock_item_obsolescence/',
    method: 'get',
  });
}

export function get_reguar_check_management_list(data: RegularCheck) {
  return api({
    url: '/api/report/get_regular_check_management_eg_card_with_battery_report/',
    method: 'post',
    data: data
  });
}